package com.durablemethods.futures.server;

import java.util.HashMap;
import java.util.Map;

public class TraderPositionSummary {
	private String trader;
	private Map<String, Integer> summaries = new HashMap<String, Integer>();
	
	public void addTeamAndSize(String team, Integer position) {
		getSummaries().put(team, position);
	}
	
	

	public String getTrader() {
		return trader;
	}

	public void setTrader(String trader) {
		this.trader = trader;
	}



	public Map<String, Integer> getSummaries() {
		return summaries;
	}



	public void setSummaries(Map<String, Integer> summaries) {
		this.summaries = summaries;
	}
	public Integer getPosition(String team){
		if (summaries.containsKey(team)){
			return summaries.get(team);
		}else{
			return 0;
		}
	}
	

}
